package org.scau.studentevaluation.exception;

public class BaseServiceException extends Exception{

    public BaseServiceException(String message){
        this(message,message);
    }


    public BaseServiceException(String message, String serviceExceptionMessage) {
        super(message);
        this.serviceExceptionMessage = serviceExceptionMessage;
    }

    /**
     * 暴露给用户的信息
     */
    private String serviceExceptionMessage;

    public String getServiceExceptionMessage() {
        return serviceExceptionMessage;
    }

    public void setServiceExceptionMessage(String serviceExceptionMessage) {
        this.serviceExceptionMessage = serviceExceptionMessage;
    }
}
